/**
 * @author huwen
 * 温故而知新
 * @date 2023/12/28 17:29
 */
public class TestFor {


    public static void main(String []args){

        int num = 1;
        int count = 0;

        System.out.println("1-10000中能被5整除的数为：");
        while (num <= 10000) {
            if (num % 5 == 0) {
                System.out.print(num + "\t");
                count++;
                if (count % 3 == 0) {
                    System.out.println();
                }
            }
            num++;
        }

    }
}
